package com.leyou.item.service;

import com.leyou.common.dto.PageDTO;
import com.leyou.item.dto.SkuDTO;
import com.leyou.item.dto.SpecParamDTO;
import com.leyou.item.dto.SpuDTO;
import com.leyou.item.dto.SpuDetailDTO;

import java.util.List;

public interface GoodsService {
    PageDTO<SpuDTO> querySpuByPage(Integer page, Integer rows, Boolean saleable, Long categoryId, Long brandId, Long id);

    void addSpu(SpuDTO spuDTO);

    void updateSpu(SpuDTO spuDTO);

    List<SkuDTO> listSkuByIDs(List<Long> ids);

    List<SkuDTO> listSkuBySpuId(Long pid);

    SpuDetailDTO listSpuDetailById(Long id);

    List<SpecParamDTO> listSpecParamBySpuId(Long pid, Boolean searching);

    SpuDTO querySpuById(Long id);

    SpuDTO queryGoodsById(Long id);

    void updateSaleable(Long id, Boolean saleable);

}
